import { interceptor } from './api'

export const post = (url, params) => {
  return fetch(url, {
    method: 'post',
    body: JSON.stringify(params),
    headers: {
      'Content-Type': 'application/json',
    },
    interceptor
  }).then((res) => res.json())
}
